package com.ljsw.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 操作日志的实体类，与表 T_OPERLOG 相对应
 * @author zhouKai
 *
 */
public class OperateLog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9009679321059859761L;

	private Integer id; // 日志流水号
	private Character operateType; // 操作类型. 0:系统日志, 1:操作日志, 2:认证日志
	private String userID; // 操作人员id
	private String corpId; // 操作人员机构id
	private String operateContent; // 具体的操作内容
	private Timestamp operateTime; // 操作时间
	private Character state; // 状态。 0：成功，1 ：失败。
	private String remarks; // 备注
	
	public static final Character SYSTEM_LOG = '0';	// 系统日志
	public static final Character OPERATE_LOG = '1';	// 操作日志
	public static final Character AUTHENTICATION_LOG = '2';	// 认证日志
	public static final Character SUCCESS = '0';	// 状态成功
	public static final Character FAILURE = '1';	// 状态失败
	

	public OperateLog() {

	}

	public OperateLog(Integer id, Character operateType, String userID, String corpId, String operateContent,
			Timestamp operateTime, Character state, String remarks) {
		super();
		this.id = id;
		this.operateType = operateType;
		this.userID = userID;
		this.corpId = corpId;
		this.operateContent = operateContent;
		this.operateTime = operateTime;
		this.state = state;
		this.remarks = remarks;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Character getOperateType() {
		return operateType;
	}

	public void setOperateType(Character operateType) {
		this.operateType = operateType;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getCorpId() {
		return corpId;
	}

	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	public String getOperateContent() {
		return operateContent;
	}

	public void setOperateContent(String operateContent) {
		this.operateContent = operateContent;
	}

	public Timestamp getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Timestamp operateTime) {
		this.operateTime = operateTime;
	}

	public Character getState() {
		return state;
	}

	public void setState(Character state) {
		this.state = state;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	public String toString() {
		return "OperateLog [id=" + id + ", operateType=" + operateType + ", userID=" + userID + ", corpId="
				+ corpId + ", operateContent=" + operateContent + ", operateTime=" + operateTime + ", state="
				+ state + ", remarks=" + remarks + "]";
	}

}
